<!doctype html>
<html lang="">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" href="/favicon.ico" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite App</title>
    <style></style>
  </head>
  <body>
    <div id="app">
      <!-- .lazy失焦再收集数据 -->
      <!-- .trim去除首尾空格 -->
      <input type="text" v-model.lazy.trim.number="name" />
    </div>
    <script src="./vue.js"></script>
    <script>
      new Vue({
        el: '#app',
        data: {
          name: '',
        },
        methods: {},
      })
    </script>
  </body>
</html>
